<template>
  <div class="examine">
    <div class="examine-title">最近浏览文件</div>
    <el-table
      :data="tableData"
      style="width: 100%"
      border
      :header-cell-style="{ background: '#F5F5F5',color:'#333' }"
      :default-sort="{ prop: 'date', order: 'descending' }"
    >
      <el-table-column prop="index" label="" width="40"> </el-table-column>
      <el-table-column prop="name" label="文件名称"> </el-table-column>
      <el-table-column prop="type" label="所属类型" sortable> </el-table-column>
      <el-table-column prop="date" label="浏览时间" sortable> </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎1",
          type: "1号类型",
          index: 1,
        },
        {
          date: "2016-05-04",
          name: "王小虎2",
          type: "2号类型",
          index: 1,
        },
        {
          date: "2016-05-01",
          name: "王小虎3",
          type: "3号类型",
          index: 1,
        },
        {
          date: "2016-05-03",
          name: "王小虎4",
          type: "4号类型",
          index: 1,
        },
      ],
    };
  },
};
</script>

<style>
</style>